package cn.yunyichina.provider.framework.dubbo.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.service.IRegister;

public class RegisterService {

    static final String serviceName = "registerService";

    static IRegister registerService = null;

    static {
        registerService = (IRegister) SpringContextHandler.getBean(serviceName);
    }
    
    public static IRegister getRegisterClient(){
    	return registerService;
    }

    public static Response callUnderlineFromInternal(String method, String data) {
        return registerService.callUnderlineFromInternal("", method, data, (short) 0);
    }

    public static Response callUnderlineFromInternal(String sessionId, String method, String data) {
        return registerService.callUnderlineFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String sessionId, String method, String data) {
        return registerService.callHumpFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String method, String data) {
        return registerService.callHumpFromInternal("", method, data, (short) 0);
    }
}
